﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="ru" />
        <title>
            <?php echo CHtml::encode($this->pageTitle); ?>
        </title>
        <!-- new css template -->
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/style.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/nivo-slider.css"/>
        <!-- javascript area -->
        <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery-1.4.2.min.js"></script>
        <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery-easing-1.3.pack.js"></script>
        <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery-easing-compatibility.1.2.pack.js"></script>
	<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/coda-slider.1.1.1.pack.js"></script>
	<script type="text/javascript" src="<?php //echo Yii::app()->requset->baseUrl; ?>/js/jquery.nivo.slider.pack.js"></script>
        <script type="text/javascript">
            var theInt = null;
            var $crosslink, $navthumb;
            var curclicked = 0;
            theInterval = function(cur){
                clearInterval(theInt);
                if (typeof cur != 'undefined') 
                    curclicked = cur;
                $crosslink.removeClass("active");
                $navthumb.eq(curclicked).parent().addClass("active");
                $("#Navigation ul li a").eq(curclicked).trigger('click');
            };
            $(function(){
                $("#Content").codaSlider();
                $navthumb = $(".nav-thumb");
                $crosslink = $(".cross-link");
                $navthumb.click(function(){
                    var $this = $(this);
                    theInterval($this.parent().attr('href').slice(1) - 1);
                    return false;
                });
                theInterval();
            });
        </script>
    </head>

<body>

    <div id="MainContainer"><!-- begin MainContainer -->
        <div id="Header"><!--begin header-->
            <div id="Logo">
                <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/555.png" height="100" alt="" />
            </div><!-- end header -->

            <div id="Navigation"><!-- begin navigation menu -->
                <?php
                $this->widget('zii.widgets.CMenu', array(
                    'items' => array(
                        array('label' => 'Главная', 'url' => array('/site/index'), 'linkOptions' => array('class' => 'cross-link active')),
                        array('label' => 'О Нас', 'url' => array('/site/page', 'view' => 'about')),
                        array('label' => 'Как нас найти', 'url' => array('/site/contact')),
                        array('label' => 'Войти', 'url' => array('/site/login'), 'visible' => Yii::app()->user->isGuest),
                        array('label' => 'Выйти (' . Yii::app()->user->name . ')', 'url' => array('/site/logout'), 'visible' => !Yii::app()->user->isGuest)
                    ),
                ));
                ?>
                <ul>
                    <li><a href="#1" class="cross-link active">Главная</a></li>
                    <li><a href="#2" class="cross-link">О нас</a></li>
                    <li><a href="#3" class="cross-link">О МРТ</a></li>
                    <li><a href="#4" class="cross-link">Контакты</a></li>
                </ul>
            </div><!-- end navigation menu -->
        </div><!-- end Header -->

        <?php
//                $this->widget('zii.widgets.CBreadcrumbs', array(
//                    'links' => $this->breadcrumbs,
//                )); 
		?><!-- breadcrumbs -->
        <div style="clear:both;"></div>
		<div id="Content" class="stripViewer">
			<div class="panelContainer">
		
            <?php echo $content; ?>
			<?php $this->widget('application.components.AboutWidget'); ?>
			<?php $this->widget('application.components.MrtWidget'); ?>
			</div>
		</div>
        <div style="width:100%; height:200px;"></div>
            <div id="Footer"><!-- begin footer -->
    		Copyright &copy; <?php echo date('Y'); ?> by something about us.<br/>
		All Rights Reserved.
        </div><!-- end footer -->

    </div><!-- end MainContainer -->

</body>
</html>